package com.hr.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hr.common.annotation.Excel;
import com.hr.common.core.domain.BaseEntity;

/**
 * 打卡对象 sys_personnel_clock
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class SysPersonnelClock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 打卡序号 */
    private Integer clockId;

    /** 打卡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "打卡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date clockDate;

    /** 打卡星期 */
    @Excel(name = "打卡星期")
    private String clockWeek;

    /** 打卡时间 */
    @Excel(name = "打卡时间")
    private String clockTime;

    /** 打卡次数 */
    @Excel(name = "打卡次数")
    private Integer numberOdClocks;

    /** 打卡状态 */
    @Excel(name = "打卡状态")
    private Integer clockState;

    public Integer getClockState() {
        return clockState;
    }

    public void setClockState(Integer clockState) {
        this.clockState = clockState;
    }

    /** 补卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "补卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replacementCardTime;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private Integer personnelId;

    /** 关联租户id**/
    private Integer tenantId;

    public SysPersonnelClock() {
    }

    public SysPersonnelClock(Date clockDate, String clockWeek, Integer personnelId, Integer tenantId) {
        this.clockDate = clockDate;
        this.clockWeek = clockWeek;
        this.personnelId = personnelId;
        this.tenantId = tenantId;
    }

    public void setPersonnelId(Integer personnelId) {
        this.personnelId = personnelId;
    }
    public Integer getClockId() {
        return clockId;
    }

    public void setClockId(Integer clockId) {
        this.clockId = clockId;
    }

    public Integer getTenantId() {
        return tenantId;
    }

    public void setTenantId(Integer tenantId) {
        this.tenantId = tenantId;
    }

    public void setClockDate(Date clockDate)
    {
        this.clockDate = clockDate;
    }

    public Date getClockDate() 
    {
        return clockDate;
    }
    public void setClockWeek(String clockWeek) 
    {
        this.clockWeek = clockWeek;
    }

    public String getClockWeek() 
    {
        return clockWeek;
    }
    public void setClockTime(String clockTime) 
    {
        this.clockTime = clockTime;
    }

    public String getClockTime() 
    {
        return clockTime;
    }
    public void setNumberOdClocks(Integer numberOdClocks) 
    {
        this.numberOdClocks = numberOdClocks;
    }
    public Integer getNumberOdClocks()
    {
        return numberOdClocks;
    }
    public void setReplacementCardTime(Date replacementCardTime) 
    {
        this.replacementCardTime = replacementCardTime;
    }

    public Date getReplacementCardTime() 
    {
        return replacementCardTime;
    }
    public void setPersonneId(Integer personnelId)
    {
        this.personnelId = personnelId;
    }

    public Integer getPersonnelId()
    {
        return personnelId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("clockId", getClockId())
            .append("clockDate", getClockDate())
            .append("clockWeek", getClockWeek())
            .append("clockTime", getClockTime())
            .append("clockState", getClockState())
            .append("numberOdClocks", getNumberOdClocks())
            .append("replacementCardTime", getReplacementCardTime())
            .append("personnelId", getPersonnelId())
            .append("tenantId", getTenantId())
            .toString();
    }
}
